﻿<Window x:Class="MyFirstWpfProject.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded" Closing="Window_Closing">
    <Grid>
        <Button Width="400" Height="200" Click="Button_Click" PreviewMouseDown="Button_PreviewMouseDown" MouseUp="Button_MouseUp">
            <Grid PreviewMouseDown="Grid_PreviewMouseDown" MouseDown="Grid_MouseUp">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="120" />
                    <ColumnDefinition Width="120"/>
                    <ColumnDefinition Width="120" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="400*" />
                </Grid.RowDefinitions>

                <TextBlock Text="Click me" Margin="0,0,6,65" PreviewMouseDown="TextBlock_PreviewMouseDown"></TextBlock>
                <Image Source="image.jpg" Grid.Column="1" Margin="0,16,0,0" PreviewMouseDown="Image_PreviewMouseDown" MouseDown="Image_MouseUp"></Image>
                <TextBox Name="textBox" Grid.Column="2" Margin="0,16,6,0" PreviewMouseDown="textBox_PreviewMouseDown"></TextBox>
            </Grid>
        </Button>
    </Grid>
</Window>
